//
//  HHRuleViewController.m
//  WeCommunity
//
//  Created by HappyMilk 01 on 2017/8/11.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "HHRuleViewController.h"

@interface HHRuleViewController ()
@property (weak, nonatomic) IBOutlet UIButton *okBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITextView *textView;

@end

@implementation HHRuleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
 
    if(IS_CHINESE == false){
        [_okBtn setTitle:@"ok" forState:0];
        _okBtn.titleLabel.font = PFR_FONT(18);
        _titleLabel.text = @"regulation";
        
        
        NSString *rulePath = [[NSBundle mainBundle]pathForResource:@"ruleEN" ofType:@"txt"];
        
        _textView.text = [NSString stringWithContentsOfFile:rulePath encoding:NSUTF8StringEncoding error:nil];
    }
    
}
- (IBAction)onOkBtn:(id)sender {
    
    [self dismissViewControllerAnimated:true completion:nil];
}

@end
